/**
 * @file rk_init.h
 * @author your name (you@domain.com)
 * @brief 载入cfg，vi和venc初始化等相关事务
 * @version 0.1
 * @date 2022-12-31
 * 
 * @copyright Copyright (c) 2022
 * 
 */
#include <getopt.h>
#include <math.h>
#include <unistd.h>
#include <pthread.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "rkmedia_api.h"
#include "rkmedia_venc.h"
#include "rtsp_demo.h"

#define MAX_SESSION_NUM 2
//会话配置的结构体
struct Session {
  char path[64];
  CODEC_TYPE_E video_type;
  RK_U32 u32Width;
  RK_U32 u32Height;
  IMAGE_TYPE_E enImageType;
  char videopath[120];

  rtsp_session_handle session;
  MPP_CHN_S stViChn;
  MPP_CHN_S stVenChn;
};

struct demo_cfg {
  int session_count;
  struct Session session_cfg[MAX_SESSION_NUM];
};


void rkmedia_init(int argc, char **argv);